home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib9 / v_11_08 / 1108121b < prev    next >
Encoding:
Text File  |  1995-11-01  |  219 b   |  19 lines

  1.  1: struct X
  2.  2:     {
  3.  3:     static int i;
  4.  4:     class Y
  5.  5:         {
  6.  6:         void f();
  7.  7:         };
  8.  8:     };
  9.  9: 
  10. 10: class Z
  11. 11:     {
  12. 12:     static int i;
  13. 13:     friend void X::Y::f()
  14. 14:         {
  15. 15:         i = 5;
  16. 16:         }
  17. 17:     };
  18.  
  19.